/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package org.webos.java.rssreader;

import org.webos.java.base.Frame;
import org.webos.java.base.FrameType;

/**
 *
 * @author kostya
 */
@FrameType(code="", jsClass="rssreader.OneItemViewer")
public class OneItemViewer extends Frame<RSSReader>{

    OneItemViewer(RSSReader aRSSReader, Entries.EntryItem aEntryItem) {
        super(aRSSReader, aRSSReader.workspace);
        setCloseable(true);
        setDynamic(true);
        setFrameHolder(aRSSReader.mainHolder);
        setWorkspace(aRSSReader.workspace);
        setData(aEntryItem.getJSONObject());
        setTitle(aEntryItem.title);
        setIcon("rss_icn rss_icn_rss");
        aRSSReader.addFrame(this);
    }
    
}
